package com.bicon.botu.medical.model.entity

import com.baomidou.mybatisplus.annotations.TableField
import com.baomidou.mybatisplus.annotations.TableName
import com.bicon.botu.core.base.repository.mybatis.UuidBaseEntity

/**
 * @version 1.0.0
 * @author: Gyb
 * @date 2018/7/17
 * @description
 **/
@TableName("custom_food")
data class CustomFood(
        /**
         * 用户id
         */
        @TableField("user_id")
        val userId: String? = null,

        /**
         * 食物名称
         */

        val name: String? = null,

        /**
         * 数量
         */

        val quantity: Int? = null,

        /**
         * 规格，单位
         */

        val unit: String? = null,

        /**
         * 热量，千卡
         */

        val kcal: Int? = null,

        /**
         * 自定义食物图片
         */
        @TableField("item_image")
        val itemImage: String? = null,

        /**
         * 详情页图片
         */
        @TableField("top_image")
        val topImage: String? = null
) : UuidBaseEntity<CustomFood>()